<article class="cl pd-20" style="min-width: 900px;">
    <div class="cl pd-5 bg-1 bk-gray mt-20">
        <span class="l">
            <a href="javascript:;" onclick="del_all()" class="btn btn-danger radius">
                <i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>
            <a class="btn btn-primary radius" href="{:url('/sys/industry_en/save', ['id'=>0])}">
                <i class="Hui-iconfont">&#xe600;</i> 添加</a>
        </span>
        <span class="r">共有数据：<strong id="total">{$list->total()}</strong>条</span>
    </div>
    <table class="table table-border table-bordered table-bg">
        <thead>
            <tr class="text-c">
                <th width="25px;">
                    <input type="checkbox" name="allcheck" value="">
                </th>
                <th width="80px;">ID</th>
                <th>名称</th>
                <th style="min-width: 260px;">标题图</th>
                <th>url</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            {foreach $list as $val}
            <tr class="text-c va-m">
                <td>
                    <input type="checkbox" value="{$val.id}" name="checkbox[]">
                </td>
                <td>{$val.id}</td>
                <td><a href="/en/industry/{$val.id}.html" target="_blank">{$val.title}</a></td>
                <td>{notempty name="val.titlepic"} <a href="{$val.titlepic}" target="_blank" class="pictureview">
                        <img src="{$val.titlepic}" title="{$val.titlepic}" style="max-height: 76px;">
                    </a>{/notempty}</td>
                <td>{$val.type ? '源码' : "富文本"}</td>
                <td class="td-manage">
                    <a href="{:url('/sys/industry_en/save?id='.$val.id)}" title="编辑" style="text-decoration:none"
                        class="btn btn-primary btn-radius">
                        <i class="Hui-iconfont">&#xe6df;</i>修改
                    </a>
                    <a href="javascript:;" title="删除" style="text-decoration:none" class="ml-10 btn btn-danger btn-radius"
                        onClick="del(this,'{$val.id}')">
                        <i class="Hui-iconfont">&#xe6e2;</i>删除
                    </a>
                </td>
            </tr>
            {/foreach}
        </tbody>
    </table>
    <div class="cl pd-5 bg-1 bk-gray mt-20 ">
        <span class="r">{notempty name="list"}{$list->render()|raw}{/notempty}</span>
    </div>
</article>